#!/bin/sh
echo build

docker build -t gohello:build . -f Dockerfile-build
docker create --name extract gohello:build
docker cp extract:/app/app ./app
docker rm -f extract

echo copy runable file

docker build --no-cache -t gohello:run . -f Dockerfile-copy
rm ./app